/**
 * 
 */
package com.jie.eclipse.pan.swtitem.actiongroup;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IToolBarManager;

import com.jie.eclipse.pan.editors.form.LogPage;


/**
 * @author yanjie
 *
 */
public class LogPageActionGroup extends BaseActionGroup{
	private LogPage logPage = null;
	/**
	 * @return the logPage
	 */
	public LogPage getLogPage() {
		return logPage;
	}

	/**
	 * @param obj
	 */
	public LogPageActionGroup(LogPage logPage) {
		super(logPage);
		this.logPage = logPage;
	}
	
	private class SaveRowAction extends Action{
		public SaveRowAction() {
			this.setImageDescriptor(getImageDesc("icon_search.gif"));
			this.setText("查询");
		}
		
		@Override
		public void run() {
			  getLogPage().reloadResult(false);
		}
	}
	
	public void fillActionToolbars (IToolBarManager actionBarManager){
		SaveRowAction saverowAction = new SaveRowAction();
		actionBarManager.add(createActionContributionItem(saverowAction));
		actionBarManager.update(true);
	}

}
